package com.cdu.pojo.dto;


import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

@Data
public class UserRegDTO {
    @NotBlank(message = "注册的用户名不能为空")
    //用户名
    private String username;
    //用户密码
    @Length(min = 6,max = 15,message = "密码位数为{min}到{max}位")
    private String password;
    //确认密码
    @Length(min = 6,max = 15,message = "密码位数为{min}到{max}位")
    private String rePassword;
}
